webpackJsonp([19], {
    113: function (e, l, a) {
        (function (e) {
            function l() {
                e.ajax({
                    url: "/api/price/" + e('select[name="currency"]').val(), finish: function (e) {
                        _ = e.data.currency, n = e.data.price
                    }
                })
            }

            var t = a(2), i = a(29)("./" + getCookie("lang") + "/new_ad.json"), _ = "", n = 0;
            l(), e.ajax({
                url: "/api/user/authentication", finish: function (e) {
                    e.data.payment_password || tipsDialog(i.label_text_set_payment_password, [{
                        value: i.label_btn_go,
                        callback: function (e) {
                            location.href = "/setting/account-money-password?backto=/new-ad"
                        }
                    }])
                }
            }), e('select[name="currency"]').change(function (a) {
                e(".input-currency").text(e(this).val()), l()
            }), e('input[name="margin"]').bind("keyup change", function (l) {
                e('input[name="price"]').val(((e(this).val() / 100 + 1) * n).toFixed(2))
            }), e('input[name="trade_type"]').change(function (l) {
                e("#submit").addClass("disable"), "ONLINE_BUY" === e(this).val() ? (e(".input-cont.input-payment_provider").hide().find(".form-tips").removeClass("success"), e(".input-cont.input-payment_window_minutes").show(), e("input[name=min_price]").parents(".input-cont").hide()) : (e(".input-cont.input-payment_provider").show(), e(".input-cont.input-payment_window_minutes").hide().find(".form-tips").removeClass("success"), e("input[name=min_price]").parents(".input-cont").show())
            }), e("#highOpt").click(function () {
                e(".high-opt").toggle(400, function () {
                    e(".high-opt").toggleClass("hidden")
                }), e(this).text(e(this).text() === i.label_hide_high_level_options ? i.label_show_high_level_options : i.label_hide_high_level_options)
            });
            for (var s = "", r = 0; r <= 24; r++)s = s + '<option value="' + 4 * r + '">' + r + ":00</option>";
            e("select.select.select2").append(s), e("#submit").click(function (l) {
                if (!e(this).hasClass("disable")) {
                    e("#submit").addClass("disable").text(i.label_btn_submiting);
                    var a = t.parse(e("#newContent").serialize());
                    a.require_trusted_by_advertiser = !!a.require_trusted_by_advertiser, a.require_identification = !!e("#safe_opt_true")[0].checked, a.require_sms_verification = a.require_identification, a.margin = parseFloat(a.margin).toFixed(2), e.ajax({
                        url: "/api/advertisement/publish",
                        data: t.stringify(a),
                        finish: function (e) {
                            tipsDialog(i.label_submit_success, [{
                                value: "OK", callback: function () {
                                    window.location = "ONLINE_BUY" === e.trade_type ? "/sell" : "/buy"
                                }
                            }])
                        },
                        postFailed: function (l) {
                            e("#submit").removeClass("disable").text(i.label_btn_submit)
                        }
                    })
                }
            }), e("body").bind("keyup change", function (l) {
                4 === e(".form-tips.success").length && "ONLINE_SELL" === e("input[name=trade_type]:checked").val() ? e("#submit").removeClass("disable") : 5 === e(".form-tips.success").length && "ONLINE_BUY" === e("input[name=trade_type]:checked").val() ? e("#submit").removeClass("disable") : e("#submit").addClass("disable")
            }), e("select.select2").change(function (l) {
                var a = e(l.target), t = parseInt(a.val()), i = a.attr("name").match(/opening_hours_([0-9])_([0-9])/),
                    _ = ["opening_hours_" + i[1] + "_0", "opening_hours_" + i[1] + "_1"], n = i[2],
                    s = e("0" === n ? "[name=" + _[1] + "]" : "[name=" + _[0] + "]");
                if (-1 === t)return s.find("option").hide(), s.val(-1).find('option[value="-1"]').show(), !1;
                0 == n && -1 != t && s.val(96), s.find("option").each(function (l, a) {
                    var i = parseInt(a.value);
                    "0" === n ? i > t ? e(a).show() : e(a).hide() : i < t ? e(a).show() : e(a).hide()
                })
            })
        }).call(l, a(0))
    }, 29: function (e, l, a) {
        function t(e) {
            return a(i(e))
        }

        function i(e) {
            var l = _[e];
            if (!(l + 1))throw new Error("Cannot find module '" + e + "'.");
            return l
        }

        var _ = {"./en-US/new_ad.json": 35, "./zh-CN/new_ad.json": 37, "./zh-HK/new_ad.json": 39};
        t.keys = function () {
            return Object.keys(_)
        }, t.resolve = i, e.exports = t, t.id = 29
    }, 35: function (e, l) {
        e.exports = {
            title: "Create an advertisement",
            title_edit: "Edit the advertisement",
            label_create_ad: "Create a advertisement for trade",
            label_edit_ad: "Edit a advertisement for trade",
            label_create_tips: "If you are a frequent trader, you can post your own trading advertisement. If you only want to trade once, we recommend that you place orders directly from the buy or sale list. <br> It is free to post an ad on CoinCola. <br> A minimun balance of <span class='min_balance_to_show_ad'></span> is required for your advertisment to be displayed on the list <br> There will be a <span class='advertiser_fee'></span> transaction fee apply on every successful trade.<br> You must privde detailed payment information in your advertisement or in your trade chat. Once the trade is made, the price of your selling bitcoin will be locked unless there is an obvious error. <br> all communication must be carried out on CoinCola, please pay attention to the fraud risk payment method. <br>",
            label_edit_tips: "Edit the advertisement",
            label_trade_type: "Trade type",
            label_select_ad_type: "Select ads type",
            label_ad_type_tips: "Which type of advertisement you want to create? If you wish to sell bitcoin,  please comfirm that you have enough balance in your CoinCola wallet",
            label_online_buy: "Online sell",
            label_online_sell: "Online buy",
            label_country_code: "Location",
            label_country_code_tips: "Please select the country you want to trade in.",
            label_more_info: "More",
            label_currency: "Currency",
            label_currency_tips: "Currency you want to trade with",
            label_margin: "Margin",
            label_margin_tips: "The price is equal to Reference Price * (1 + Margin). Form -99.99 to 99.99.",
            label_price: "Price",
            label_price_tips: "the reference price will be updated in every 10 minutes based on the margin rate. ",
            label_min_limit: "Min limit",
            label_min_limit_tips: "Min amount per trade",
            label_min_limit_placeholder: "Please enter min limit",
            label_max_limit: "Max limit",
            label_max_limit_tips: "Amount's max limit.",
            label_max_limit_placeholder: "Please enter max limit",
            label_payment_provider: "Payment methods",
            label_payment_detail: "Payment detail",
            label_payment_detail_placeholder: "Please enter payment detail. Your partner will receive this after created a trade.",
            label_message: "Message",
            label_message_placeholder: "Enter more infomation about this advertisement(such as payment method and preferred contact information)",
            label_open: "Open time",
            label_mon: "Mon",
            label_tue: "Tue",
            label_wed: "Wed",
            label_thu: "Thu",
            label_fri: "Fri",
            label_sat: "Sat",
            label_sun: "Sun",
            label_begin_times: "Begin time",
            label_close_times: "End time",
            label_open_time_tips: "The time you wish your advertisement display on the list.",
            label_high_level_setting: "Advanced setting",
            label_safe_options: "Safe option",
            label_safe_options_tips: "If turn it on, only verified users can create a trade from this advertisement.",
            label_on: "ON",
            label_off: "OFF",
            label_trusted_user: "Trusted user only",
            label_trusted_user_info: "If turn it on, only users you have trusted can create a trade from this advertisement",
            label_show_high_level_options: "Show Advanced...",
            label_hide_high_level_options: "Hide ...",
            label_btn_submit: "POST",
            label_btn_save: "SAVE",
            label_payment_window_minutes: "Payment due time",
            label_payment_window_minutes_decs: "You promise to pay within this time(min)",
            label_error_msg_1: "Please enter from -99.99 to 99.99 number",
            label_error_msg_2: "Minimun Limit can not be more than Maximum Limit",
            label_error_msg_3: "Maximum Limit can not be less than Minimum Limit",
            label_error_msg_4: "Please enter a positive integer that is greater than or equal to 5 or less than 45",
            label_error_msg_5: "Please enter less than 200 words",
            label_error_msg_6: "Please enter less than 4096 words",
            label_save_success: "Succeed",
            label_submit_success: "Succeed",
            label_btn_saving: "Saving...",
            label_btn_submiting: "Publishing...",
            label_btn_go: "Settings",
            label_text_set_payment_password: "Please set a payment paasword before you publish your advertisement",
            min_price: "Min price",
            label_min_price_tips: "If the market price is lower than the minimum price you set (reference price * (1 + Margin rate)),  the displayed price will remained as your minimum price.",
            label_this_day_close: "Close"
        }
    }, 37: function (e, l) {
        e.exports = {
            title: "发布广告",
            title_edit: "编辑广告",
            label_create_ad: "发布一个比特币交易广告",
            label_edit_ad: "编辑一个比特币交易广告",
            label_create_tips: "如果您经常交易比特币，可以发布自己的比特币交易广告。如果您只想购买或出售一次，我们建议您直接从购买或出售列表中下单交易。<br>发布一则交易广告是免费的。<br>您的CoinCola钱包中至少需要有<span class='min_balance_to_show_ad'></span>，您的广告才会显示在交易列表中。<br>发布交易广告的CoinCola用户每笔完成的交易需要缴纳 <span class='advertiser_fee'></span> 的费用。<br>您必须在交易广告或交易聊天中提供您的付款详细信息，发起交易后，价格会锁定，除非定价中有明显的错误。<br>所有交流必须在 CoinCola 上进行，请注意高风险有欺诈风险的付款方式。<br>",
            label_edit_tips: "编辑广告文案",
            label_trade_type: "交易类型",
            label_select_ad_type: "选择广告类型",
            label_ad_type_tips: "您想要创建什么样的交易广告？如果您希望出售比特币，请确保您在 CoinCola.com 的钱包中有比特币。",
            label_online_buy: "在线出售比特币",
            label_online_sell: "在线购买比特币",
            label_country_code: "所在地",
            label_country_code_tips: "请选择你要发布广告的国家。",
            label_more_info: "更多信息",
            label_currency: "货币",
            label_currency_tips: "您希望交易付款的货币类型。",
            label_margin: "溢价",
            label_margin_tips: "基于市场价的溢出比例，市场价是根据部分大型交易所实时价格得出的，确保您的报价趋于一个相对合理范围，比如当前价格为7000，溢价比例为10%，那么价格为7700。",
            label_price: "价格",
            label_price_tips: "基于溢价比例得出的报价，10分钟更新一次。",
            label_min_limit: "最小限额",
            label_min_limit_tips: "一次交易的最低的交易限制。",
            label_min_limit_placeholder: "请输入最小限额",
            label_max_limit: "最大限额",
            label_max_limit_tips: "一次交易中的最大交易限制，您的钱包余额也会影响最大量的设置。",
            label_max_limit_placeholder: "请输入最大限额",
            label_payment_provider: "收款方式",
            label_payment_detail: "收款详情",
            label_payment_detail_placeholder: "请输入收款的详细信息，对方下单后可看到收款详情，不得超过200字符。",
            label_message: "广告留言",
            label_message_placeholder: "请说明有关您交易的相关条款或备注您的支付方式，如微信号，支付宝号等，以便对方可以快速和您交易。（下单前后都可见）",
            label_open: "开放时间",
            label_mon: "星期一",
            label_tue: "星期二",
            label_wed: "星期三",
            label_thu: "星期四",
            label_fri: "星期五",
            label_sat: "星期六",
            label_sun: "星期日",
            label_begin_times: "开始时间",
            label_close_times: "结束时间",
            label_open_time_tips: "您希望广告自动显示和隐藏的天数和小时数。",
            label_high_level_setting: "高级设置",
            label_safe_options: "是否启用安全选项",
            label_safe_options_tips: "启用后，仅限于已验证身份证和通过短信验证的用户与本广告交易。",
            label_on: "启用",
            label_off: "不启用",
            label_trusted_user: "仅限受信任的交易者",
            label_trusted_user_info: "启用后，仅限于自己信任的用户与本广告交易。",
            label_show_high_level_options: "显示高级设置...",
            label_hide_high_level_options: "隐藏高级设置...",
            label_btn_submit: "立即发布",
            label_btn_save: "保存",
            label_payment_window_minutes: "付款期限",
            label_payment_window_minutes_decs: "您承诺在此期限内付款（分钟）",
            label_error_msg_1: "请输入-99.99 至 99.99 的数值",
            label_error_msg_2: "最小交易额不可大于最大交易额",
            label_error_msg_3: "最大交易额不可小于最小交易额",
            label_error_msg_4: "请输入大于等于5小于等于45的正整数",
            label_error_msg_5: "请输入少于200字",
            label_error_msg_6: "请输入少于4096字",
            label_save_success: "保存成功",
            label_submit_success: "发布成功",
            label_btn_saving: "保存中...",
            label_btn_submiting: "发布中...",
            label_btn_go: "前往设置",
            label_text_set_payment_password: "发布广告之前，请设置资金密码。",
            min_price: "最低价（选填）",
            label_min_price_tips: "广告最低可成交的价格，可帮助您在价格剧烈波动时保持稳定的盈利，比如最低价为12000，市场价处于12000以下时，您的广告将依旧以12000的价格展示出来",
            label_this_day_close: "关闭"
        }
    }, 39: function (e, l) {
        e.exports = {
            title: "發布廣告",
            title_edit: "編輯廣告",
            label_create_ad: "發布一個比特幣交易廣告",
            label_edit_ad: "編輯一個比特幣交易廣告",
            label_create_tips: "如果您經常交易比特幣，可以發布自己的比特幣交易廣告。如果您只想購買或出售一次，我們建議您直接從購買或出售列表中下單交易。 <br>發布一則交易廣告是免費的。 <br>您的CoinCola錢包中至少需要有<span class='min_balance_to_show_ad'></span>，您的廣告才會顯示在交易列表中。 <br>發布交易廣告的CoinCola用戶每筆完成的交易需要繳納 <span class='advertiser_fee'></span> 的費用。 <br>您必須在交易廣告或交易聊天中提供您的付款詳細信息，發起交易後，價格會鎖定，除非定價中有明顯的錯誤。 <br>所有交流必須在 CoinCola 上進行，請注意高風險有欺詐風險的付款方式。 <br>",
            label_edit_tips: "編輯廣告文案",
            label_trade_type: "交易類型",
            label_select_ad_type: "選擇廣告類型",
            label_ad_type_tips: "您想要創建什麼樣的交易廣告？如果您希望出售比特幣，請確保您在 CoinCola.com 的錢包中有比特幣。",
            label_online_buy: "在線出售比特幣",
            label_online_sell: "在線購買比特幣",
            label_country_code: "所在地",
            label_country_code_tips: "請選擇你要發布廣告的國家。",
            label_more_info: "更多信息",
            label_currency: "貨幣",
            label_currency_tips: "您希望交易付款的貨幣類型。",
            label_margin: "溢價",
            label_margin_tips: "基於市場價的溢出比例，市場價是根據部分大型交易所實時價格得出的，確保您的報價趨於一個相對合理範圍，比如當前價格為7000，溢價比例為10%，那麼價格為7700。",
            label_price: "價格",
            label_price_tips: "基於溢價比例得出的報價，10分鐘更新一次。",
            label_min_limit: "最小限額",
            label_min_limit_tips: "一次交易的最低的交易限制。",
            label_min_limit_placeholder: "請輸入最小限額",
            label_max_limit: "最大限額",
            label_max_limit_tips: "一次交易中的最大交易限制，您的钱包余额也会影响最大量的设置。",
            label_max_limit_placeholder: "一次交易中的最大交易限制，您的錢包餘額也會影響最大量的設置。",
            label_payment_provider: "收款方式",
            label_payment_detail: "收款详情",
            label_payment_detail_placeholder: "請輸入收款的詳細信息，對方下單後可看到收款詳情，不得超過200字符。",
            label_message: "廣告留言",
            label_message_placeholder: "請說明有關您交易的相關條款或備註您的支付方式，如微信號，支付寶號等，以便對方可以快速和您交易。 （下單前後都可見）",
            label_open: "開放時間",
            label_mon: "星期一",
            label_tue: "星期二",
            label_wed: "星期三",
            label_thu: "星期四",
            label_fri: "星期五",
            label_sat: "星期六",
            label_sun: "星期日",
            label_begin_times: "開始時間",
            label_close_times: "結束時間",
            label_open_time_tips: "您希望廣告自動顯示和隱藏的天數和小時數。",
            label_high_level_setting: "高級設置",
            label_safe_options: "是否啟用安全選項",
            label_safe_options_tips: "啟用後，僅限於已驗證身份證和通過短信驗證的用戶與本廣告交易。",
            label_on: "啟用",
            label_off: "不啟用",
            label_trusted_user: "僅限受信任的交易者",
            label_trusted_user_info: "啟用後，僅限於自己信任的用戶與本廣告交易。",
            label_show_high_level_options: "顯示高級設置...",
            label_hide_high_level_options: "隱藏高級設置...",
            label_btn_submit: "立即發布",
            label_btn_save: "保存",
            label_payment_window_minutes: "付款期限",
            label_payment_window_minutes_decs: "您承諾在此期限內付款（分鐘）",
            label_error_msg_1: "請輸入-99.99 至 99.99 的數值",
            label_error_msg_2: "最小交易額不可大於最大交易額",
            label_error_msg_3: "最大交易額不可小於最小交易額",
            label_error_msg_4: "請輸入大於等於5小於等於45的正整數",
            label_error_msg_5: "請輸入少於200字",
            label_error_msg_6: "請輸入少於4096字",
            label_save_success: "保存成功",
            label_submit_success: "發布成功",
            label_btn_saving: "保存中...",
            label_btn_submiting: "發布中...",
            label_btn_go: "前往設置",
            label_text_set_payment_password: "發布廣告之前，請設置資金密碼。",
            min_price: "最低價（選填）",
            label_min_price_tips: "廣告最低可成交的價格，可幫助您在價格劇烈波動時保持穩定的盈利，比如最低價為12000，市場價處於12000以下時，您的廣告將依舊以12000的價格展示出來",
            label_this_day_close: "關閉"
        }
    }
}, [113]);